package Entities;

import javax.persistence.CascadeType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
@Entity
@DiscriminatorValue("COMPRAVENTA")
public class Entity_CompraVenta extends Entity_ProductoVenta {
	private static final long serialVersionUID = 1L;
	@OneToOne(cascade = CascadeType.ALL)
	@JoinColumn(name = "id_insumo")
	private Entity_Insumo insumo;
	

	//GET & SET
	public Entity_Insumo getInsumo() {
		return insumo;
	}

	public void setInsumo(Entity_Insumo insumo) {
		this.insumo = insumo;
	}
}
